{% extends "base.html" %}

{% block body %}
<script>
$(document).ready(function(){
    $(".big_list dd").click(function(){
        if($(this).attr("title") != null ){
        location.href=$(this).attr("title");
        }
        
    });
    $("#addproject_div").click(function(){
        $(this).html("");
        $(this).attr("contenteditable" , true );
        $(this).focus();
    });
});
</script>
<div class="big_list" >
    <dl>
        <dt>项目列表</dt>
        {% for project in project_list %}
        <dd title="/jobs/{{project.id}}">{{project}}</dd>
        {% endfor %}
        <dd id="addproject_div" >添加新项目...</dd>
    </dl>

</div>
{% endblock %}

